/*
 * @Author: 许静1123 806901413@qq.com
 * @Date: 2024-06-24 14:03:56
 * @LastEditors: 许静1123 806901413@qq.com
 * @LastEditTime: 2024-06-24 14:29:53
 * @FilePath: \qiankun-history\app1\vue.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const { name } = require("./package");
module.exports = {
  lintOnSave: false,
  devServer: {
    port: 3001,
    headers: {
      "Access-Control-Allow-Origin": "*",
    },
  },
  configureWebpack: {
    output: {
      library: `${name}-[name]`,
      libraryTarget: "umd", // 把微应用打包成 umd 库格式
      chunkLoadingGlobal: `webpackJsonp_${name}`, // webpack 5 需要把 jsonpFunction 替换成 chunkLoadingGlobal
    },
  },
};
